package cn.ztr.familyalbum.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-05-29
 */
@TableName("growth_album_template")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "模板列表参数",description = "")
public class GrowthAlbumTemplate extends Model<GrowthAlbumTemplate> {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 图片路劲
     */
    @ApiModelProperty(value = "图片路劲")
    @TableField("picture_path")
    private String picturePath;
    /**
     * 模板名称
     */
//    @ApiModelProperty(value = "模板名称")
//    @TableField("template_name")
//    private String templateName;
    /**
     * 模板类型 1：系统模板
     */
    @ApiModelProperty(value = "模板类型Id")
    @TableField("template_type_id")
    private Integer templateTypeId;
    /**
     * 模板介绍
     */
//    @ApiModelProperty(value = "模板介绍")
//    @TableField("template_introduced")
//    private String templateIntroduced;
    /**
     * 开始时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private Date startTime;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    @TableField("money")
    private BigDecimal money;


    /**
     * 1：待审核 2：通过 3：未通过 4：已上架 5：已下架
     */
    @ApiModelProperty(value = "1：待审核 2：通过 3：未通过 4：已上架 5：已下架")
    @TableField("state")
    private Integer state;
    /**
     * 1：已收费 2：未收费
     */
    @ApiModelProperty(value = "1：已收费 2：未收费")
    @TableField("is_money")
    private Integer isMoney;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;
    /**
     * 上传时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "上传时间")
    @TableField("upload_time")
    private Date uploadTime;
    /**
     * 上传者真实姓名
     */
    @ApiModelProperty(value = "上传者真实姓名")
    @TableField("real_name")
    private String realName;
    /**
     * 图片名称
     */
    @ApiModelProperty(value = "模板名称")
    @TableField("picture_name")
    private String pictureName;
    /**
     * 结束时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty(value = "0:未删除 1：已删除")
    @TableField("is_del")
    private String isDel;

    @ApiModelProperty(value = "最低层模板介绍")
    @TableField("template_introduced")
    private String templateIntroduced;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GrowthAlbumTemplate{" +
        ", id=" + id +
        ", picturePath=" + picturePath +
        ", templateType=" + templateTypeId +
        ", startTime=" + startTime +
        ", money=" + money +
        ", state=" + state +
        ", isMoney=" + isMoney +
        ", userId=" + userId +
        ", uploadTime=" + uploadTime +
        ", realName=" + realName +
        ", pictureName=" + pictureName +
        ", endTime=" + endTime +
                ", isDel=" + isDel +
                ", templateIntroduced=" + templateIntroduced +
        "}";
    }
}
